// 订阅者管理容器

function WatchersContainer() {
  this.container = [];
}
WatchersContainer.target = null
WatchersContainer.prototype.addWacher = function(watcher) {
  this.container.push(watcher);
}
WatchersContainer.prototype.notify = function() {
  this.container.forEach(watcher => watcher.update());
}